package com.shuangti;

public class Test06 {
    public static void main(String[] args) {
       /* int a=1;
        int b=2;
        int J;
        J = a;
        a = b;
        b = J;

        System.out.println("交换后a="+a);
        System.out.println("交换后b="+b);*/
        int a=5;
        int b=3;
         a=a+b;
         b=a-b;
         a=a-b;
        System.out.println("交换后a="+a);
        System.out.println("交换后b="+b);


    }
}
